<ul class="dux-tab am-cf">
    <li class="{$type == 0 ? 'active' : 0}">
        <a href="{url('')}">全部</a>
    </li>
    <li class="{$type == 1 ? 'active' : 0}">
        <a href="{url('', ['type' => 1])}">待付款</a>
    </li>
    <li class="{$type == 2 ? 'active' : 0}">
        <a href="{url('', ['type' => 2])}">待发货</a>
    </li>
    <li class="{$type == 3 ? 'active' : 0}">
        <a href="{url('', ['type' => 3])}">待收货</a>
    </li>

    <li class="{$type == 4 ? 'active' : 0}">
        <a href="{url('', ['type' => 4])}">待评价</a>
    </li>

</ul>
<table class="am-table">
    <thead>
    <th>商品</th>
    <th width="200" class="am-text-center">合计</th>
    <th width="110" class="am-text-center">状态</th>
    <th width="120" class="am-text-center">操作</th>
    </thead>
</table>

<!--if{empty($pageList)}-->
<div class="dux-page am-text-center am-padding">暂无订单</div>
<!--{/if}-->
<!--loop{$pageList as $vo}-->
<div class="dux-page">


    <table class="am-table am-table-bordered">
        <tbody>
        <tr>
            <td colspan="4"><span class="am-margin-right">订单号: {$vo.order_no}</span><span class="am-margin-right">下单时间: {date('Y-m-d H:i', $vo.order_create_time)}</span><span class="am-margin-right"><a href="{$vo.order_seller_url}">{$vo.order_seller_name}</a></span></td>
        </tr>
        <?php $i=0; ?>
        <!--loop{$vo.order_items as $k => $item}-->
        <?php $i++; ?>
        <tr>
            <td class="am-text-middle">
                <div class="am-fl">
                    <a href="{$item.goods_url}" target="_blank"><img src="{$item.goods_image}" width="64"
                                                                     height="64"></a>
                </div>
                <div style="margin-left: 75px">
                    <div><a href="{$item.goods_url}" target="_blank" class="link">{$item.goods_name}</a>
                    </div>
                    <div class="dux-text-disabled">
                        <!--loop{(array)$item.goods_options as $v}-->
                        {$v.value}
                        <!--{/loop}-->
                    </div>

                    <div class="dux-text-disabled">￥{$item.goods_price} × {$item.goods_qty}</div>
                </div>
            </td>
            <!--if{$i == 1}-->
            <td class="am-text-center" rowspan="{count($vo.order_items)}" width="200">
                <div class="am-text-danger">￥{$vo.total_price}</div>
                <div class="am-text-sm dux-text-disabled">(含运费￥{$vo.delivery_price})</div>
                {$vo.pay_type ? '在线付款' : '货到付款'}
            </td>
            <td class="am-text-center" rowspan="{count($vo.order_items)}" width="110">
                <div>{$vo.status_data.name}</div>
                <a href="{url('info', ['order_no' => $vo['order_no']])}" class="dux-text-disabled">订单详情</a>
            </td>
            <td class="am-text-center" rowspan="{count($vo.order_items)}" width="110" >
                {$vo.status_data.html}
            </td>
            <!--{/if}-->
        </tr>
        <!--{/loop}-->
        </tbody>
    </table>

</div>

<!--{/loop}-->
<div class="dux-pages">
    {$page}
</div>